<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
 <title>师生活动表</title>
 <object id="WebBrowser"
	classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height="0" width="0">
</object>
 <META http-equiv ="Content-Type" content = "text/html; charset=UTF-8" >
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
 <meta http-equiv="description" content="this is my page">

 <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
 <style>
 body {
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.PageNext{page-break-after: always;}<!--控制分页-->
#form1 table tr td {
	text-align:center; 
	vertical-align:middle;
	height:30px;
}
tr {
	background-color: #FFF;
}
</style>
<style media=print>  
.Noprint{display:none;}<!--用本样式在打印时隐藏非打印项目 -->  
</style>

 </head>
 <script language="javascript"> 
 function printsetup(){ 

		document.all.WebBrowser.execwb(8,1); 
} 
	function printpreview(){ 
	// 打印页面预览 
	var mStr1,mStr2;   
	mStr1 = document.body.innerHTML ;  
	mStr2= mStr1; 
	var mWindow = window; 
	mWindow.document.body.innerHTML ="<br /><br /><br /><br /><br />"; 
	
	var my = mWindow.document.createElement("hr"); 
	  
my.setAttribute("height", "0px");  
my.setAttribute("border", "0px");
my.setAttribute("border-top", "1px solid #ff1493");
//添加分割线   
	
	mWindow.document.body.appendChild(my);
	
	var br6 = mWindow.document.createElement("br");
	mWindow.document.body.appendChild(br6);
	var br7 = mWindow.document.createElement("br");
	mWindow.document.body.appendChild(br7);
	var br8 = mWindow.document.createElement("br");
	mWindow.document.body.appendChild(br8);
	var br9 = mWindow.document.createElement("br");
	mWindow.document.body.appendChild(br9);
	var br10 = mWindow.document.createElement("br");
	mWindow.document.body.appendChild(br10);

	mWindow.document.body.innerHTML+=mStr2;
	var lian=mWindow.document.getElementById("lian");
	
	lian.innerHTML="<p>第二联</p>";
	
	lian.setAttribute("id","lian1");
	
	
	mStr2=mWindow.document.body.innerHTML;
	mWindow.document.body.innerHTML=mStr1+mStr2;
	
	mWindow.document.all.WebBrowser.execwb(7,1);   
	window.document.body.innerHTML = mStr1;
	
	} 
	function printit() 
	{ 
	if (confirm("确定打印吗？")) {
		var mStr1,mStr2,mStr3;   
		mStr1 = document.body.innerHTML ;  	
		var mWindow = window;
		
		mStr2=mStr3=mStr1;
		mWindow.document.body.innerHTML="<div id='pageNext1' style='visibility:hidden;'><p class='PageNext'></p></div><br /><br /><br /><br /><br />";
	
		mWindow.document.body.innerHTML +=mStr3; 
		
		var lian=document.getElementById("lian");
		lian.innerHTML="<p>第三联</p>";
		lian.setAttribute("id","lian2");
		mStr3= mWindow.document.body.innerHTML; 
		
			
			
		mWindow.document.body.innerHTML="<br /><br /><br /><br /><br />";
		
	
		var my = mWindow.document.createElement("hr"); 
	  
		my.setAttribute("height", "0px");  
	my.setAttribute("border", "0px");
		my.setAttribute("border-top", "1px solid #ff1493");
		//添加分割线   
	
		mWindow.document.body.appendChild(my);
	
		var br6 = mWindow.document.createElement("br");
		mWindow.document.body.appendChild(br6);
		var br7 = mWindow.document.createElement("br");
		mWindow.document.body.appendChild(br7);
		var br8 = mWindow.document.createElement("br");
		mWindow.document.body.appendChild(br8);
		var br9 = mWindow.document.createElement("br");
		mWindow.document.body.appendChild(br9);
		var br10 = mWindow.document.createElement("br");
		mWindow.document.body.appendChild(br10);
			
		mWindow.document.body.innerHTML +=mStr2;
			
		lian=document.getElementById("lian");//改变边栏
		lian.innerHTML="<p>第二联</p>"; 
		lian.setAttribute("id","lian1");
			
		mStr2=mWindow.document.body.innerHTML;
		
		mStr3=mStr1+mStr2+mStr3;
		
		mWindow.document.body.innerHTML=mStr2;
		lian=document.getElementById("lian1");//改变边栏
		lian.innerHTML="<p>第四联</p>"; 
		mStr2=mWindow.document.body.innerHTML;
		mWindow.document.body.innerHTML=mStr3+mStr2;
		
		mWindow.document.all.WebBrowser.execwb(6,6);   
		window.document.body.innerHTML = mStr1;			
	} 
} 
</script>
  <body>
  <?php 
	$activity = $data;
// 	$activity = new ActivityBean();
?>

  
<div align="center">

<h2 class="style4">"拔尖计划"师生活动情况表</h2>
<form id="form1" name="form1" method="post" action="">
  
  <p><?php echo date("Y 年 m 月 d 日",strtotime($activity->time))?></p>
  <br />
  <input class="Noprint" type=button name=button_print value="打印" class="noprint" onclick="javascript:printit()"> 
 <input class="Noprint" type=button name=button_setup value="打印页面设置" class="noprint" onclick="javascript:printsetup();"> 
 <input class="Noprint" type=button name=button_show value="打印预览" class="noprint" onclick="javascript:printpreview();">
  <br />
  <br />
	  <table width="800" border="0" cellpadding="5">
  <tr>
  	<td>
	<table width="780" border="1" align="center" cellpadding="5" cellspacing="1" bgcolor="#000000">
  <!--DWLayoutTable-->
  <tr>
    <td class="2" nowrap="nowrap"><span class="STYLE7 STYLE7">活动类型：</span></td>
    <td class="2" ><?php echo getActivityType($activity->activityType);?></td>
    <td colspan="2" nowrap="nowrap" class="2"><span class="font_foot STYLE7 STYLE7">子类型：</span></td>
    <td class="2" colspan="2"><?php echo getActivitySubType($activity->type);?></td>
    <td class="2" colspan="1"><span class="font_foot STYLE7 STYLE7">主办院系：</span></td>
    <td class="2" colspan="2"><?php echo getInstitute($activity->department);?></td>
  </tr>
  <tr>
     <td nowrap="nowrap" class="2"><span class="font_foot STYLE7">活动名称：</span></td>
     <td class="2" ><?php echo $activity->name;?></td>

    <td class="3" colspan="2" nowrap="nowrap"><span class="font_foot STYLE7">地点：</span></td>
    <td class="2" colspan="2" ><?php echo $activity->location;?></td>
    <td colspan="1" nowrap="nowrap" class="2"><span class="font_foot STYLE7">主讲人<br />/主持人：</span></td> 
    <td class="2" colspan="2"><?php echo $activity->host;?></td>
  </tr>
  <tr>
  <td nowrap="nowrap" colspan="1" class="2"><span class="font_foot STYLE7">时间段：</span></td>
  <td class="2" colspan="5"><?php echo "从".$activity->activityBegin."到".$activity->activityEnd;?></td>
    <td colspan="1" class="2"><span class="font_foot STYLE7">经费预算：</span></td>
    <td class="2" colspan="2"><?php echo $activity->budget;?></td>
   </tr>
   <tr>
    <td colspan="1" rowspan="3"><span class="font_foot STYLE7">内容简介：</span></td>
    <td class="1" colspan="8" rowspan="3"><?php echo $activity->content;?></td>
  </tr>  
</table>
</td>
<td>
<div style="WRITING-MODE: lr-tb" id ="lian"><p>第一联院系联</p></div>
</td>
</tr>
</table>
</form>
<div class="1">
  <p><span class="font_foot STYLE7">院系负责人（公章）：___________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;教务处审核人（公章）：___________
  <br /><br />国际处审核人（公章）：___________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 财务处审核（公章）：___________</span></p>
</div>

</div>

 </html>